﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DungeonAdventure.Library.Social
{
    public class Facebook
    {
        /*
        private const String AppId = "192201187518166";
        private const String AppSecret = "285a480e481edc9a86b56a94f0df158a";
        private const String ExtendedPermissions = "publish_actions";

        public FacebookOAuthClient FbOAuthClient { get; private set; }
        public FacebookOAuthResult FbOAuthResult { get; private set; }
        public FacebookClient FbClient { get; private set; }
        
        public Uri LoginUrl { get; private set; }
        public String UserId { get; set; }
        */
        public Facebook()
        {
            /*
            FbOAuthClient = new FacebookOAuthClient { AppId = AppId, AppSecret = AppSecret};
                        
            var loginParameters = new Dictionary<String, Object>();
            loginParameters["response_type"] = "token";
            loginParameters["display"] = "popup";
            loginParameters["scope"] = ExtendedPermissions;
            LoginUrl = FbOAuthClient.GetLoginUrl(loginParameters);
            */
        }

        public Boolean ProcessUrl(Uri url)
        {
            /*
            FacebookOAuthResult fbOAuthResult;
            if (FacebookOAuthResult.TryParse(url, out fbOAuthResult))
            {
                FbOAuthResult = fbOAuthResult;
                return FbOAuthResult.IsSuccess;
            }
            
            FbOAuthResult = null;
            */
            return false;             
        }

        public String[] GetUserPermissions()
        {
            return new string[]{""};
        }
    }
}
